package com.zhentao.day02.am;

public class StudentTest {
  public static void main(String[] args) {
    Student s1 = new Student();
    s1.setName("Tom");
    s1.setAge(20);

    Student s2 = new Student();
    s2.setName("Jerry");
    s2.setAge(18);

    StudentComparator sc = new StudentComparator();
    int compare = sc.compare(s1, s2);

    System.out.println("compare = " + compare);

  }
}
